import axios from "@/utils/axiosUtils"
import { IUser,IUser2 } from "@/interfaces/userInterface"

export const findAllUser = () => {
    return axios.get("/users/getAccountList2")
}

export const findUserByName = (data: IUser) => {
    return axios.post("/users/getAccountList2", data)
}

export const loginApi = (data:IUser2) => {
    //后端要求传递的数据 data:username=bobo&passowrd=1234qwer
    return axios.post("/login","username=bobo&password=1234qwer")
}